<%@ page language="java" import="java.util.*,com.hs.chd.model.*" pageEncoding="utf-8"%>
<%
 Searchmview obj = (Searchmview)request.getAttribute("obj");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html >
<head>
<%@ include file="../../include.jsp"%> 
<script>
function loadBookContent(contentid){
	  
	$.ajax({   
        type:'GET'  
        ,url: '<%=basePath%>search/loadBookContent.do?contentid='+contentid  
        ,data:'',                           
        contentType:"application/x-www-form-urlencoded;charset=UTF-8",  
        beforeSend:function(data){   
            $('#bookcontent').html('数据加载中......');
        }//发送请求前   
        ,success:function(data){   
        	  
            $('#bookcontent').html(data);    
        }//请求成功后   
        ,error:function(data){   
            $('#bookcontent').html('数据加载失败.');
        }//请求错误   
        ,complete:function(data){    

        }   
    });    
}

</script> 
</head>
<body>
    <%if(null != obj){ 
    	Long datatype = obj.getDatatype();
        boolean oldOrMod = false;
    	if(datatype == 3l){
    		oldOrMod = true;
    	}
    %>
    <%if(!oldOrMod){ %>
    <div class="listWrap">
	    <table width="99%" border="0" cellspacing="0" cellpadding="0" class="tableList">
	      <tr> 
	        <th colspan="4" align=align><font size=3 color=red>现代期刊题录信息</font></th> 
	      </tr> 
	      <%if(1l == obj.getDatatype()||2l == obj.getDatatype()){ %>
	      <tr> 
	        <th width="10%">标题</th> 
	        <td colspan=3><%=StringUtilTool.NULL2Blank((String)obj.getTitle()) %></td>  
	      </tr>
	      <%} %>
	      <tr> 
	        <th>英文标题</th> 
	        <td colspan=3><%=StringUtilTool.NULL2Blank((String)obj.getTitlen()) %></td>  
	      </tr>
	      <tr> 
	        <th width="10%">刊名</th> 
	        <td width="40%"><%=StringUtilTool.NULL2Blank((String)obj.getPeriodicalname()) %></td> 
	         <th width="10%">英文刊名</th> 
	        <td><%=StringUtilTool.NULL2Blank((String)obj.getPeriodicalname()) %></td>  
	      </tr> 
	      <tr> 
	        <th width="10%">作者</th> 
	        <td width="40%"><%=StringUtilTool.NULL2Blank((String)obj.getAuthor()) %></td> 
	        <th width="10%">英文作者</th> 
	        <td><%=StringUtilTool.NULL2Blank((String)obj.getAuthor()) %></td>  
	      </tr>
	      <tr> 
	        <th width="10%">作者单位</th> 
	        <td width="40%"><%=StringUtilTool.NULL2Blank((String)obj.getAuthorunit()) %></td> 
	         <th width="10%">作者通讯地址</th> 
	        <td><%=StringUtilTool.NULL2Blank((String)obj.getAuthoraddress()) %></td>  
	      </tr>
	       <tr> 
	        <th>关键词</th> 
	        <td colspan=3><%=StringUtilTool.NULL2Blank((String)obj.getKeyword()) %></td>  
	      </tr>
	       
	       <%if(1l == obj.getDatatype()){ %>
	       <tr> 
	        <th> 主题词</th> 
	        <td colspan=3><%=StringUtilTool.NULL2Blank((String)obj.getSubjectword()) %></td>  
	      </tr>
	      <%} %>
	      <%if(2 == obj.getDatatype()){ %>
	       <tr> 
	        <th> 主题词</th> 
	        <td colspan=3><%=StringUtilTool.NULL2Blank((String)obj.getSubjectword()) %></td>  
	      </tr>
	      <%} %>
	       <%if(1l == obj.getDatatype()){ %>
	      <tr> 
	        <th>摘要</th> 
	        <td colspan=3><%=StringUtilTool.NULL2Blank((String)obj.getAbstract_()) %></td>  
	      </tr> 
	      <%} %>
	       <%if(2 == obj.getDatatype()){ %>
	      <tr> 
	        <th>摘要</th> 
	        <td colspan=3><%=StringUtilTool.NULL2Blank((String)obj.getAbstract_()) %></td>  
	      </tr> 
	      <%} %>
	       <tr> 
	        <th width="10%">语种</th> 
	        <td width="40%"><%=StringUtilTool.NULL2Blank((String)obj.getLanguage()) %></td> 
	         <th width="10%">文献类型</th> 
	        <td><%=StringUtilTool.NULL2Blank((String)obj.getDocumenttype()) %></td>  
	      </tr>
	      <tr> 
	        <th width="10%">分类号</th> 
	        <td width="40%"><%=StringUtilTool.NULL2Blank((String)obj.getClassno()) %></td> 
	         <th width="10%">资助情况</th> 
	        <td><%=StringUtilTool.NULL2Blank((String)obj.getFundstr()) %></td>  
	      </tr>
	      
	      <tr> 
	        <th width="10%">年份</th> 
	        <td width="40%"><%=StringUtilTool.NULL2Blank((String)obj.getYearstr()) %></td> 
	         <th width="10%">卷</th> 
	        <td><%=StringUtilTool.NULL2Blank((String)obj.getVolume()) %></td>  
	      </tr>
	      <tr> 
	        <th width="10%">期</th> 
	        <td width="40%"><%=StringUtilTool.NULL2Blank((String)obj.getPeriod()) %></td> 
	         <th width="10%">页码</th> 
	        <td><%=StringUtilTool.NULL2Blank((String)obj.getPageno()) %></td>  
	      </tr>
	       <tr> 
	        <th width="10%">资助类别</th> 
	        <td width="40%"><%=StringUtilTool.NULL2Blank((String)obj.getFundtype()) %></td> 
	         <th width="10%">文献来源</th> 
	        <td><%=StringUtilTool.NULL2Blank((String)obj.getComfrom()) %></td>  
	      </tr>
	      <tr> 
	        <th width="10%">国家\省市</th> 
	        <td width="40%"><%=StringUtilTool.NULL2Blank((String)obj.getAreastr()) %></td> 
	         <th width="10%">参文数</th> 
	        <td><%=StringUtilTool.NULL2Blank((String)obj.getCwnum()) %></td>  
	      </tr>
	       <tr> 
	        <th width="10%">出版地</th> 
	        <td width="40%"><%=StringUtilTool.NULL2Blank((String)obj.getPublisharea()) %></td> 
	         <th width="10%">特征词</th> 
	        <td><%=StringUtilTool.NULL2Blank((String)obj.getImpressword()) %></td>  
	      </tr>
	      <tr> 
	        <th width="10%">基金</th> 
	        <td width="40%"><%=StringUtilTool.NULL2Blank((String)obj.getFundname()) %></td> 
	         <th width="10%">CA</th> 
	        <td><%=StringUtilTool.NULL2Blank((String)obj.getCastr()) %></td>  
	      </tr>
	    </table>
    <%}else{ 
    
         List datalist = (List)request.getAttribute("papercontentlist");
    
    %>
     <table width="99%" border="0" cellspacing="0" cellpadding="0" class="tableList">
	      <tr> 
	        <th colspan="4" align=align><font size=3 color=red>古籍题录信息</font></th> 
	      </tr> 
	    
	     <tr> 
	        <th width="10%">中医病名</th> 
	        <td width="40%"><%=StringUtilTool.NULL2Blank((String)obj.getTcmname()) %></td> 
	         <th width="10%">书籍名称</th> 
	        <td><%=StringUtilTool.NULL2Blank((String)obj.getPeriodicalname()) %></td>  
	      </tr>
	      <tr> 
	        <th width="10%">作者</th> 
	        <td ><%=StringUtilTool.NULL2Blank((String)obj.getAuthor()) %></td> 
	          <th width="10%">朝代</th> 
	        <td width="40%"><%=StringUtilTool.NULL2Blank((String)obj.getBookcd()) %></td> 
	      </tr>
	      <tr> 
	        <th width="10%">卷册章节</th> 
	        <td width="40%"><%=StringUtilTool.NULL2Blank((String)obj.getVolumesection()) %></td> 
	         <th width="10%">书籍版本</th> 
	        <td><%=StringUtilTool.NULL2Blank((String)obj.getBookversion()) %></td>  
	      </tr>
	      
	       <tr> 
	        <th>摘要</th> 
	        <td colspan=3><%=StringUtilTool.NULL2Blank((String)obj.getAbstract_()) %></td>  
	      </tr>
	       <tr> 
	        <th>原文</th> 
	        <td colspan=3>
	        <%
	            StringBuffer databuffer = new StringBuffer();
	            if(datalist.size()>0){
	            	for(int i =0 ;i<datalist.size();i++){
	            	   Map data = (Map)datalist.get(i);
	            	   databuffer.append("<a href=javaScript:loadBookContent('");
	            	   databuffer.append(data.get("id")).append("');>");
	            	   databuffer.append(data.get("PAPERTITLE")).append("</a>").append("&nbsp;&nbsp;");
	                   
	            
	        
	           		 }
	            }else{
	            	databuffer.append("没有原文数据!");
	            }
	         %>
	          <%=databuffer %>
	        </td>  
	      </tr>
	        
	    </table> 
	    </div>
    <%}} %>
     <div class="listWrap">
	    <table width="99%" border="0" cellspacing="0" cellpadding="0" class="tableList">
	      <tr> 
	        <td><span id="bookcontent"></span></td> 
	      </tr> 
	    </table>
	 </div>
   
</body>
</html>